home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / f90 / nearest.z / nearest
Encoding:
Text File  |  1998-10-30  |  2.0 KB  |  56 lines

  1. NEAREST(3I)                                            Last changed: 1-6-98
  2.  
  3.  
  4. NNAAMMEE
  5.      NNEEAARREESSTT - Returns the nearest different machine representable number
  6.      in a given direction
  7.  
  8. SSYYNNOOPPSSIISS
  9.      NNEEAARREESSTT (([XX==]_x,, [SS==]_s))
  10.  
  11. IIMMPPLLEEMMEENNTTAATTIIOONN
  12.      UNICOS, UNICOS/mk, and IRIX systems
  13.  
  14. SSTTAANNDDAARRDDSS
  15.      Fortran 90
  16.  
  17. DDEESSCCRRIIPPTTIIOONN
  18.      The NNEEAARREESSTT intrinsic function returns the nearest different machine
  19.      representable number in a given direction.  It accepts the following
  20.      arguments:
  21.  
  22.      _x    Must be of type real
  23.  
  24.      _s    Must be of type real and not equal to zero
  25.  
  26.      NNEEAARREESSTT is an elemental function.  The name of this intrinsic cannot
  27.      be passed as an argument.
  28.  
  29. RREETTUURRNN VVAALLUUEESS
  30.      The result type and type parameter are the same as _x.  The result has
  31.      a value equal to the machine representable number distinct from _x and
  32.      nearest to it in the direction of the infinity with the same sign as
  33.      _s.
  34.  
  35. NNOOTTEESS
  36.      On CRAY T90 systems that support IEEE arithmetic, this intrinsic
  37.      vectorizes inline for 64-bit operands and calls to scalar-only library
  38.      routines for 128-bit operands.
  39.  
  40. EEXXAAMMPPLLEESS                                   -46
  41.      NNEEAARREESSTT ((33..00,, 22..00)) has the value 3 + 2    on UNICOS systems according
  42.      to the real number system model.
  43.                                            -22
  44.      NNEEAARREESSTT ((33..00,, 22..00)) has the value 3 + 2    on UNICOS/mk and IRIX
  45.      systems, according to the real number system model.
  46.  
  47.      For more information on the real number model, see the MMOODDEELLSS(3I) man
  48.      page.
  49.  
  50. SSEEEE AALLSSOO
  51.      MMOODDEELLSS(3I)
  52.  
  53.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
  54.      printed version of this man page.
  55.  
  56.